<div class="serach-block">
    <div class="featured">
        <div class="box-heading"><?php echo $heading_title; ?></div>
    </div>
    <div class="serach-block-right"></div>
    <div id="search">
        <div class="button-search" title="Tìm kiếm nâng cao"></div>
        <input type="text" name="search" placeholder="<?php echo $text_search; ?>" value="<?php echo $search; ?>" />
    </div>
</div>
<div class="box">
    <div class="box-content">
        <div class="box-product">
            <?php 
            $i = 0;
            $a = 5;
            $b = 10;
            $c = 15;
            $d = 20;
            foreach ($products as $product) {  
            $i ++;
            ?>
            <div <?php if( ($i==$a) || ($i==$b) || ($i==$c) || ($i==$d)){ ?> class="product-items no-margin-right" <?php } else { ?> class="product-items" <?php } ?>>
                <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
                <?php if ($product['thumb']) { ?>
                <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
                <?php } ?>
                <div class="productShow">
                    <div class="product-code">
                        <span class="name-text">Mã: <?php echo $product['code']; ?></span>
                    </div>
                    <div class="product-line"></div>
                    <div class="product-price">
                    <?php if ($product['price']) { ?>
                        <?php if (!$product['special']) { ?>
                        <span class="price-text">Giá: <?php echo $product['price']; ?></span>
                        <?php } else { ?>
                        <span class="price-text">Giá: <?php echo $product['special']; ?></span>
                        <?php } ?>
                    <?php } else { ?>
                        <span class="price-text">Giá: chưa có</span>
                    <?php } ?>
                    </div>
                </div>
                <!--   <?php if ($product['rating']) { ?>
                <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
                <?php } ?>
             <div class="cart"><input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /></div>-->
            </div>
            <?php } ?>
        </div>
    </div>
</div>

